# -*- coding: utf-8 -*-
# @Time: 2022/9/11 3:19
# @Author: foxhuty
# @File: todo.py
# @Software: PyCharm
# @Based on: python 3.10.6
from exts import db
from datetime import datetime


class ToDoModel(db.Model):
    __tablename__ = 'my_schedule'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    deadline = db.Column(db.String(200), nullable=False)
    content = db.Column(db.Text, nullable=False)
    create_time = db.Column(db.DateTime, default=datetime.now)
